<template>
	<view class="main">
		<view class="content">
			<textarea value="" v-model="content" placeholder=" 请输入您对专利代办机构的评价信息 " />
		</view>
		<view class="btn">
			<button type="warn" @click="getevel">提交</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				content:'',
				id:''
			}
		},
		
		onLoad(option) {
			this.id = option.id
		},
		methods:{
			getevel(){
				this.$http.get('/orderPatent/evaluateOrder', {orderId:this.id,evaluate:this.content}).then(res => {
					if (res.code == '0') {
						uni.showToast({
							icon:"success",
							title:res.msg
						})
						setTimeout(function(){
							uni.switchTab({
								url:'../tab/person'
							})
						},2000)
						
					
					}else{
						uni.showToast({
							icon:"none",
							title:res.msg
						})
					}
				})
			},
			
		},
	}	
</script>

<style scoped  lang="scss">
	.content{
		width: 96%;
		margin: 20px auto;
		textarea{
			width: 90%;
			margin:0 auto;
			background: #F2F2F2;
			padding: 20upx;
		}
		
	}
		
	button{
		width: 80%;
		margin: 100upx auto 0;
		background: #FD580A;
	}
</style>
